//
//  BaseTableViewCell.swift
//  SwiftWeather
//
//  Created by shen on 2023/8/28.
//

import UIKit

class BaseTableViewCell: UITableViewCell {
    // MARK: - Initialization

    override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        configureAppearance()
        setupViews()
        constraintViews()
    }

    @available(*, unavailable)
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}

// MARK: - BaseViewSetup

@objc extension BaseTableViewCell: BaseViewSetup {
    func configureAppearance() {
        backgroundColor = .clear
    }

    func setupViews() {}

    func constraintViews() {}
}
